<template>
    <main>
        <NavInstall></NavInstall>

        <section class="install-hero-android">
            <div class="container android-wrapper"><img class="android-banner"
                                                        src="../assets/ios_download.09691.png"
                                                        alt="android-banner">
                <div class="banner-content android-banner-content"><h3 class="ios-h3">安装Malus Android版</h3><span>兼容 Android 6.0 系统以上移动及平板设备，同时支持音视频加速、游戏加速</span>
                    <div class="device-feature">
                        <div class="item"><i class="ri-check-line"></i>一键智能加速、多模式、多场景切换</div>
                        <div class="item"><i class="ri-check-line"></i>支持加速国内99%的音视频应用及网页</div>
                        <div class="item"><i class="ri-check-line"></i>精选游戏线路，低延迟、超稳定，国服游戏全支持</div>
                    </div>
                    <div class="android-btn-group"><a href="/r/ios" event="Download iOS AppStore" target="_blank"
                                                      class="applestore-btn"><i class="ri-android-fill"></i> 下载Malus APK  </a><a class="malus-support-btn ios-appleid"><img
                        src="../assets/google-play-badge.58f4b.png" alt=""></a></div>
                    <a href="/changelog/ios" class="android-changelog android-changelog-ios">
                        <div class="app-changelog">
                            <div class="changelog-time"><span>2021-2-1</span> <small>最新版本 V4.7.0</small></div>
                            <span class="changelog-content">修复已知bug</span>
                            <span class="changelog-content">优化线路显示交互</span></div>
                    </a></div>
            </div>
        </section>

        <InstallStep></InstallStep>

        <Features></Features>

        <user-comment></user-comment>

        <section class="android-review container"><img src="https://malus.s3cdn.net/uploads/applestore_icon.png"
                                                       alt="googleplay" class="google-play-icon applestore-icon">
            <div class="android-review-content"><h4>Malus 正式上架 Apple 商店，好评送3天 VIP</h4><span>*奖励领取方式：评价后发送【截图+帐号】至在线客服或者 hi@getmalus.com</span>
            </div>
            <a href="itms-apps://itunes.apple.com/app/id1476233789" target="_blank"
               class="android-review-btn ios-review-btn">立即好评，获3天VIP</a></section>
    </main>
</template>

<script>
import NavInstall from "@/components/NavInstall";
import Features from "@/components/Features";
import UserComment from "@/components/UserComment";
import InstallStep from "@/components/InstallStep";

export default {
    name: "Android",
    components: {InstallStep, UserComment, Features, NavInstall}
}
</script>

<style scoped lang="scss">
main {
    .install-hero-android {
        .android-wrapper {
            display: flex;
            margin-top: 68px !important;
            align-items: center;

            img {
                width: 440px;
                height: 100%;
            }
        }

        .banner-content {
            margin-left: 108px;

            h3 {
                font-size: 46px;
                font-weight: 400;
                margin-top: 0 !important;
            }

            span {
                display: block;
                font-size: 14px;
                color: #7b7b7b;
                margin-top: 16px;
                line-height: 1.5;
            }

            .device-feature {
                margin-top: 28px;
                display: inline-flex;
                flex-direction: column;

                .item {
                    font-size: 15px;
                    padding-bottom: 10px;
                    margin-bottom: 10px;
                    color: #444;
                    display: inline-flex;
                    align-items: center;
                    border-bottom: 1px solid #f5f5f5;

                    i {
                        color: #4D55E8;
                        font-size: 18px;
                        margin-right: 16px;
                    }
                }
            }

            .android-btn-group {
                margin-top: 24px;
                display: flex;
                align-items: center;

                a {
                    display: flex;
                    align-items: center;
                    position: relative;
                    transition: all .2s ease;
                    background: #4d55e8;
                    height: 52px;
                    width: 204px;
                    justify-content: center;
                    font-size: 15px;
                    font-weight: 500;
                    border-radius: 4px;
                    color: #fff;

                    i {
                        font-size: 20px;
                        margin-right: 4px;
                    }
                }

                .malus-support-btn {
                    width: 182px;
                    margin-left: 32px;
                    background: none;
                }
            }

            .android-changelog {
                margin-top: 36px;
                width: 520px;
                position: relative;
                display: block;

                .app-changelog {
                    display: flex;
                    align-items: center;
                    overflow: hidden;
                    width: 100%;
                    height: 30px;
                    white-space: nowrap;
                    text-overflow: ellipsis;

                    .changelog-time {
                        span {
                            display: none;
                            margin: 0 !important;
                            padding-top: 1px;
                            font-size: 12px !important;
                            color: #7b7b7b;
                            padding-left: 12px;
                            padding-right: 12px;
                            border-right: 1px solid #e8e7f8;
                            line-height: 1.5;
                        }

                        small {
                            padding: 5px 12px 4px;
                            background: #f3f2ff;
                            color: #4d55e8;
                            border-radius: 20px;
                            font-size: 12px;
                            margin-right: 12px;
                        }
                    }

                    .changelog-content {
                        display: block;
                        color: #7b7b7b;
                        line-height: 1.5;
                        padding-top: 1px;
                        padding-left: 12px;
                        padding-right: 12px;
                        margin-top: 0 !important;
                        font-size: 12px !important;
                        border-right: 1px solid #e8e7f8;
                    }
                }

                .app-changelog:after {
                    position: absolute;
                    content: "......";
                    right: -30px;
                    top: 0;
                    color: #7b7b7b;
                }
            }
        }
    }

    .ml-install-step {
        margin-top: 100px;

        .title {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            h2 {
                font-size: 40px;
                display: inline-block;
                text-align: center;
                position: relative;
                color: #222;
            }

            .quote {
                text-align: center;
                margin-top: 16px;
                color: #666;
            }
        }

        .content {
            margin-top: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #FAFAFF;
            border: 5px solid #F7F7FF;
            padding: 56px 56px 64px;
            border-radius: 200px;
            position: relative;

            .step {
                display: flex;
                align-items: center;
                justify-content: center;

                .number {
                    width: 64px;
                    height: 64px;
                    border-radius: 50%;
                    border: 2px solid #4D55E8;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: #4D55E8;
                    font-size: 40px;
                    font-weight: 500;
                    flex-shrink: 0;
                }

                .right {
                    margin-left: 24px;

                    .name {
                        font-size: 20px;
                        color: #222;
                    }

                    .des {
                        display: block;
                        margin-top: 8px;
                        font-size: 13px;
                        color: #7b7b7b;
                        cursor: pointer;
                        transition: all .2s ease;
                        line-height: 1.6;
                        max-width: 160px;
                        background-color: transparent;
                    }
                }
            }

            .arrow {
                display: block;
                width: 118px;
                height: 9px;
                background: url(../assets/arrow.27cdd.svg) no-repeat;
                background-size: contain;
                bottom: 0;
            }

            .detail {
                position: absolute;
                font-size: 12px;
                padding: 4px 12px;
                border-radius: 50px 50px 0 0;
                background: #EDEDFF;
                color: #555;
                bottom: 0;
                left: 0;
                right: 0;
                margin: 0 auto;
                max-width: 189px;
                text-align: center;
                transition: all .2s ease;
            }
        }
    }

    .android-review {
        display: flex;
        align-items: center;
        background: #f0f1ff;
        height: 200px;
        border-radius: 6px;
        margin-top: 64px;

        img {
            width: 100px;
            height: auto;
            opacity: .8;
            margin-left: 64px !important;
        }

        .android-review-content {
            margin-left: 64px;

            h4 {
                font-size: 24px;
                line-height: 1.5;
                margin-bottom: 16px;
                color: #333;
            }

            span {
                font-size: 12px;
                color: #7b7b7b;
            }
        }

        a {
            background: #216efd;
            margin: 0 64px 0 auto;
            font-size: 14px;
            display: block;
            width: 206px;
            height: 46px;
            line-height: 46px;
            text-align: center;
            color: #fff;
            border-radius: 50px;
            transition: all .2s ease;
        }
    }
}
</style>
